<?php defined( 'IN_BLOG' ) or die(); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>moBlog</title>
<link type="text/css" rel="stylesheet" href="images/style.css" />
<script type="text/javascript" src="images/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="loadjs.php?file=mo_public"></script>
</head>
<?php
$_ctlName = $_GET[FLEA::getAppInf('controllerAccessor')]?trim($_GET[FLEA::getAppInf('controllerAccessor')]):'home';
$_actName = $_GET[FLEA::getAppInf('actionAccessor')]?trim($_GET[FLEA::getAppInf('actionAccessor')]):'';
?>
<body>
<div id="header">
	<h1 class="logo"></h1>
    <ul class="topnav">
    	<li><a href="<?php echo url('home','dashboard'); ?>"<?php if($_ctlName=='home' && $_actName=='dashboard'){ echo ' class="focus"'; } ?>>Dashboard</a></li>
		<li><a href="<?php echo url('posts','list'); ?>"<?php if($_ctlName=='posts'){ echo ' class="focus"'; } ?>>Posts</a></li>
		<li><a href="<?php echo url('comments','list'); ?>"<?php if($_ctlName=='comments'){ echo ' class="focus"'; } ?>>Comments</a></li>
		<li><a href="<?php echo url('medias','list'); ?>"<?php if($_ctlName=='medias'){ echo ' class="focus"'; } ?>>Medias</a></li>
		<li><a href="<?php echo url('home','settings'); ?>"<?php if($_actName=='settings'){ echo ' class="focus"'; } ?>>Settings</a></li>
		<li><a href="<?php echo url('home','tools'); ?>"<?php if($_actName=='tools'){ echo ' class="focus"'; } ?>>Tools</a></li>
    </ul>
</div>
<div id="post-search">
	<form action="" method="post" id="ps-form">
    	<span class="tbt" id="ps-submit"></span><input id="keyword" name="keyword" type="text" class="search_box" value="search..." />
    </form>
</div>
<div id="user-plane">Login as: <span>allen</span> <a href="<?php echo url('user','profile'); ?>">Profile</a> | <a href="<?php echo url('user','logout'); ?>">Logout</a></div>